#ifndef __HP_BAR_H__
#define __HP_BAR_H__

#include "cocos2d.h"
#include "GameObj.h"

using namespace cocos2d;

class HpBar : public GameObj 
{
public:

	static HpBar* create(float width, float height, float max);

	~HpBar(void); 
	
	void setHp(float hp);
private:
	float d_max;
	CCLayerColor* d_healthHiderLayer;
};

#endif // __HP_BAR_H__

